package org.jeecg.modules.fund.job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.fund.service.IFundValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时任务
 * 更新加仓次数
 */
@Slf4j
@Component
public class UpdateDefaultAddCountJob {
    @Autowired
    private IFundValueService fundValueService;

    @Scheduled(cron = "0 50 21,22,0,3,5,7,8 * * *")
    public void execute() throws InterruptedException {
        fundValueService.batchUpdateAddCount();
    }
}
